Skip to content

Conversation

@setchy
Copy link
Member

@setchy setchy commented Jan 15, 2026

Migrate from the lower-level OAS types from https://github.com/octokit/openapi-types.ts to the REST endpoint types from https://github.com/octokit/types.ts.

@github-actions github-actions bot added dependency Dependency updates refactor Refactoring of existing feature labels Jan 15, 2026
@setchy setchy marked this pull request as ready for review January 20, 2026 21:11

export type NotificationThreadSubscription =
components['schemas']['thread-subscription'];
export type ListNotificationsForAuthenticatedUserResponse =
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More explicit use of GitHub REST HTTP verb and path to its response types

Signed-off-by: Adam Setch <[email protected]>
*/
export async function getHtmlUrl(url: Link, token: Token): Promise<string> {
try {
// TODO - Add explicit type for response shape
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a TODO which I intend to clean up via #2545

@setchy setchy marked this pull request as draft January 20, 2026 21:31
Signed-off-by: Adam Setch <[email protected]>
@setchy setchy marked this pull request as ready for review January 21, 2026 12:25
Signed-off-by: Adam Setch <[email protected]>
@setchy setchy merged commit 60de1fc into main Jan 21, 2026
7 checks passed
@setchy setchy deleted the refactor/octokit-types-continued branch January 21, 2026 12:30
@github-actions github-actions bot added this to the Release 6.15.0 milestone Jan 21, 2026
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency Dependency updates refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

2 participants